; HM NIS Edit Wizard helper defines
!include "MUI2.nsh"
 
; ; MUI Settings
!define MUI_ABORTWARNING
 
; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
 
ShowInstDetails show
ShowUnInstDetails show
SpaceTexts show
 
; 安装脚本
!macro customInstall
 
!macroend

!macro customUnInstall
# 提示窗
MessageBox MB_OKCANCEL "是否确认删除用户数据?" IDOK label_ok  IDCANCEL  label_cancel
label_ok:
    # 删除固定文件夹
    RMDir /r D:\ProgramData\SmartPerf_Editor
    Goto end
label_cancel:
    Goto end
end:
!macroend
